cmake_minimum_required(VERSION 3.20)

project(v5)

# 定义变量
SET(LIB_CALC calc)
SET(APP v5)

# 查找头文件
include_directories(${PROJECT_SOURCE_DIR}/include)

# 指定生成目录
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)

# 指定可执行程序目录
set (EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)

# 指定链接目录
link_directories((${PROJECT_BINARY_DIR}/lib))

# 添加子节点
add_subdirectory(calc)
add_subdirectory(src)